<div class="nav-sub w1180">
	<ul class="zoom">
		<li><a href="/crm/org/list">商户列表</a></li>
<!-- 		<li><a href="/crm/org/catelog-list">商户类型</a></li> -->
		<li><a href="/crm/org/cate-list">商户类目</a></li>
	</ul>
</div>
<div class="main-ct w1180">
<!-- 	<a href="javascript:;" class="btn-cs btn-blue btn-fillet mt10">返 回</a> -->
<form id="commonForm" method="post" action="/crm/org/updateCatelog">
	<div class="form-info mt20">
	
		<dl>
			<dt>城市分类：</dt>
			<dd>
    			<select name="city_id" id="city_id">
    			<?php if ($this->city):?>
				<?php foreach ($this->city as $k=>$v):?>
				
    				 <?php if($this->catalog['city_id'] == $v['city_id']):?>
                           <option selected value="<?php echo $this->catalog['city_id'];?>"><?php echo $v['city_name']; ?></option>
                     <?php else:?>
                           <option value="<?php echo $v['city_id']; ?>"><?php echo $v['city_name']; ?></option>
                     <?php endif;?> 
                        
    			<?php endforeach; ?>
    			<?php else:?>
    				<option value="">请选择</option>
				<?php endif;?>		
    			</select>
			</dd>
		</dl>
		<dl>
			<dt>分类名称：</dt>
			<dd><input type="text" class="txt" name="catalog_name" id="catalog_name" value="<?php echo $this->catalog['catalog_name'];?>"></dd>
		</dl>

	</div>
	<p class="mt30 txt-center">
		<input type="hidden" name="catalog_id" value="<?php echo $this->catalog['catalog_id'];?>">
		<input class="input-cs btn-fillet btn-green" type="submit" value="确定" />
	</p>
</form>
</div>

<script type="text/javascript">
$().ready(function() {
	$("#commonForm").validate({
		debug:true,
		rules: {
			catalog_name: {
				required: true
			}
		},
		submitHandler:function(form){ 
	            form.submit();
	    }   
	});

});
</script>